#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Zhangcl
# url_type =0 related, 1 absolute

perm_dic = {
    'crm.can_access_my_course': {
        'url_type': 0,
        'url': 'stu_my_classes',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_access_customer_list': {
        'url_type': 1,
        'url': '/kingadmin/crm/customer/',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_access_customer_detail': {
        'url_type': 0,
        'url': 'table_obj_change',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_access_studyrecords': {
        'url_type': 0,
        'url': 'studyrecords',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_access_homework_detail': {
        'url_type': 0,
        'url': 'homework_detail',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_update_homework_detail': {
        'url_type': 0,
        'url': 'homework_detail',  # url mame
        'method': 'POST',
        'args': []
    },
    'crm.can_access_courserecord': {
        'url_type': 1,
        'url': '/kingadmin/crm/courserecord/',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_access_table_obj_change': {
        'url_type': 0,
        'url': 'table_obj_change',  # url mame
        'method': 'GET',
        'args': []
    },
    'crm.can_update_table_obj_change': {
        'url_type': 0,
        'url': 'table_obj_change',  # url mame
        'method': 'POST',
        'args': []
    },
}
